package com.aclever.sys.modules;






import com.sun.xml.internal.messaging.saaj.util.Base64;

import java.net.InetSocketAddress;
import java.net.Proxy;

import static java.net.Proxy.*;

/**
 * Created with IntelliJ IDEA.
 * User: aclever
 * Date: 23.07.13
 * Time: 16:04
 * To change this template use File | Settings | File Templates.
 */
public class ProxyAuth {
    static private boolean isProxy = false;


    private String PROXY_HOST = "proxy.govital.lan";
    private int PROXY_PRORT = 3128;

    private Proxy proxy;
    String encoded;

    private String username;
    private String password;

    /*
    * if(!CON.tryConnect()){
    *
    * }
    *
    * */


    public ProxyAuth(){
        isProxy = true;
        proxy = new Proxy(Type.HTTP, new InetSocketAddress(PROXY_HOST, PROXY_PRORT));




    }


    public static boolean isProxyUse(){
        return isProxy;
    }


    public Proxy getProxySettings(){
        return proxy;
    }
 }
